xen.git
19 years agoxen: Fix VCPUOP_set_periodic_timer return value.
kfraser@localhost.localdomain [Sat, 10 Mar 2007 16:22:52 +0000 (16:22 +0000)]
xen: Fix VCPUOP_set_periodic_timer return value.
Clean up vcpu_op() code, and fix a couple of comments.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux: Use new time hypercalls.
kfraser@localhost.localdomain [Fri, 9 Mar 2007 19:36:24 +0000 (19:36 +0000)]
linux: Use new time hypercalls.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoxen: Debug 'q' key prints per-vcpu periodic timer info.
kfraser@localhost.localdomain [Fri, 9 Mar 2007 19:34:52 +0000 (19:34 +0000)]
xen: Debug 'q' key prints per-vcpu periodic timer info.
Do not enable periodic timer by default for HVM guests.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux: fix build warnings
kfraser@localhost.localdomain [Fri, 9 Mar 2007 19:33:43 +0000 (19:33 +0000)]
linux: fix build warnings
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agodump-core: store .xen_p2m or .xen_pfn section in pfn ascending order.
kfraser@localhost.localdomain [Fri, 9 Mar 2007 18:33:36 +0000 (18:33 +0000)]
dump-core: store .xen_p2m or .xen_pfn section in pfn ascending order.
So far the order isn't specified and may be random in theory.
But sorted array is requested by crash utility for efficient search.

Fortunately it is the case except ia64 full virtualized domain.
Update document such that those array must be sorted and fix the ia64
full virtualized domain case.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years agoxen/x86: add allocation success checks.
kfraser@localhost.localdomain [Fri, 9 Mar 2007 18:32:20 +0000 (18:32 +0000)]
xen/x86: add allocation success checks.

The necessary fix to arch_domain_create() was discovered by Gerd
Hoffmann, but apparently not submitted so far.

Also, adjust two error codes.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agolinux: fix condition for entering tickless state
kfraser@localhost.localdomain [Fri, 9 Mar 2007 18:30:52 +0000 (18:30 +0000)]
linux: fix condition for entering tickless state

I noticed that timer interrupts were running at full rate regardless
of whether the system was idle.
softlockup_get_next_event() must return the maximum of zero and the
delta to the next event, not the minimum (which is always zero or
negative, yielding zero or a very large positive number as return
value).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoxen: New vcpu_op commands for setting periodic and single-shot timers.
kfraser@localhost.localdomain [Fri, 9 Mar 2007 18:26:47 +0000 (18:26 +0000)]
xen: New vcpu_op commands for setting periodic and single-shot timers.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoRevert 14316 -- no need to fix maxvcpu domctl.
kfraser@localhost.localdomain [Fri, 9 Mar 2007 18:26:22 +0000 (18:26 +0000)]
Revert 14316 -- no need to fix maxvcpu domctl.

19 years agoThis patch fixes two problems with sending and receiving of (arrays of)
Ewan Mellor [Fri, 9 Mar 2007 16:04:19 +0000 (16:04 +0000)]
This patch fixes two problems with sending and receiving of (arrays of)
structures.

The first one allows to determine the size of a member when parsing a
'set'.
The cast in the second part fixes the address calculation when
serializing an array.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years ago[XEN] Fix 14315
Tim Deegan [Fri, 9 Mar 2007 12:28:37 +0000 (12:28 +0000)]
[XEN] Fix 14315
We do need to be able to shadow_enable vcpu-less domains.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[XEN] Don't let the tools take away all of a domain's vcpus.
Tim Deegan [Fri, 9 Mar 2007 12:16:21 +0000 (12:16 +0000)]
[XEN] Don't let the tools take away all of a domain's vcpus.
Signed-off-by: Weidong Han <weidong.han@intel.com>
19 years ago[XEN] Shadow: be more explicit in assuming that d->vcpu[0] is valid
Tim Deegan [Fri, 9 Mar 2007 12:10:29 +0000 (12:10 +0000)]
[XEN] Shadow: be more explicit in assuming that d->vcpu[0] is valid
Signed-off-by: Tim Deegan <Tim.Deegan@xensourc.com>
19 years agoMerge
Tim Deegan [Fri, 9 Mar 2007 11:45:49 +0000 (11:45 +0000)]
Merge

19 years ago[SVM] Don't free HSA and root vmcb when disabling SVM
Tim Deegan [Fri, 9 Mar 2007 11:45:19 +0000 (11:45 +0000)]
[SVM] Don't free HSA and root vmcb when disabling SVM
since we're no longer allowed to free pages in an interrupt context.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agolinux: Upgrade to latest Xen interface version (0x00030205).
kfraser@localhost.localdomain [Fri, 9 Mar 2007 11:44:31 +0000 (11:44 +0000)]
linux: Upgrade to latest Xen interface version (0x00030205).
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoMerge
Tim Deegan [Fri, 9 Mar 2007 11:14:03 +0000 (11:14 +0000)]
Merge

19 years agoxm: New command 'debug-keys' to inject debug-key events into Xen.
kfraser@localhost.localdomain [Fri, 9 Mar 2007 11:11:59 +0000 (11:11 +0000)]
xm: New command 'debug-keys' to inject debug-key events into Xen.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM] Revert thinko from 14291
Tim Deegan [Fri, 9 Mar 2007 11:11:23 +0000 (11:11 +0000)]
[HVM] Revert thinko from 14291
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agopci back: Fix registration of of filters on subsections of config space.
kfraser@localhost.localdomain [Fri, 9 Mar 2007 09:21:31 +0000 (09:21 +0000)]
pci back: Fix registration of of filters on subsections of config space.
Found by Jambanuthan K.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoMake the VTPM.destroy method return 'void' upon success and adapt the
Ewan Mellor [Fri, 9 Mar 2007 02:32:52 +0000 (02:32 +0000)]
Make the VTPM.destroy method return 'void' upon success and adapt the
test case to reflect that.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agoImprove error message.
Ewan Mellor [Fri, 9 Mar 2007 01:59:59 +0000 (01:59 +0000)]
Improve error message.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
19 years agoRemove VDI.set_SR -- this was always unimplemented, and pretty mad.
Ewan Mellor [Fri, 9 Mar 2007 01:25:43 +0000 (01:25 +0000)]
Remove VDI.set_SR -- this was always unimplemented, and pretty mad.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFancy headings.
Ewan Mellor [Fri, 9 Mar 2007 01:15:07 +0000 (01:15 +0000)]
Fancy headings.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMove the booting description out of the VM class description into the VM
Ewan Mellor [Fri, 9 Mar 2007 01:06:11 +0000 (01:06 +0000)]
Move the booting description out of the VM class description into the VM
Lifecycle section of the doc.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRemove the word "Additional" from all the RPC subheadings -- we include all
Ewan Mellor [Fri, 9 Mar 2007 00:46:50 +0000 (00:46 +0000)]
Remove the word "Additional" from all the RPC subheadings -- we include all
the methods now, not just the non-accessors.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded section on references vs UUIDs.
Ewan Mellor [Fri, 9 Mar 2007 00:44:10 +0000 (00:44 +0000)]
Added section on references vs UUIDs.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoChanged the example of linked references (Set(Ref(x)) <-> Ref(y)) to use VM and
Ewan Mellor [Fri, 9 Mar 2007 00:35:29 +0000 (00:35 +0000)]
Changed the example of linked references (Set(Ref(x)) <-> Ref(y)) to use VM and
VIFs rather than VM and VMGroups, now that we've deleted VMGroups.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded {VIF,VBD}.{plug,unplug} methods. Docs and C bindings -- Xend to follow.
Ewan Mellor [Thu, 8 Mar 2007 23:47:24 +0000 (23:47 +0000)]
Added {VIF,VBD}.{plug,unplug} methods.  Docs and C bindings -- Xend to follow.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded VM_BAD_POWER_STATE error code to VM.hard_shutdown.
Ewan Mellor [Thu, 8 Mar 2007 23:22:56 +0000 (23:22 +0000)]
Added VM_BAD_POWER_STATE error code to VM.hard_shutdown.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRemove crashdump.create -- this doesn't make sense.
Ewan Mellor [Thu, 8 Mar 2007 23:16:34 +0000 (23:16 +0000)]
Remove crashdump.create -- this doesn't make sense.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix duplicate consts around xc_error declarations.
Ewan Mellor [Thu, 8 Mar 2007 22:33:47 +0000 (22:33 +0000)]
Fix duplicate consts around xc_error declarations.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMerge
Tim Deegan [Thu, 8 Mar 2007 16:41:32 +0000 (16:41 +0000)]
Merge

19 years ago[HVM] Save/restore: tidy PFN handling in the tools.
Tim Deegan [Thu, 8 Mar 2007 16:40:35 +0000 (16:40 +0000)]
[HVM] Save/restore: tidy PFN handling in the tools.
Make the differences clearer between the number of frames, the max PFN
and the size of the pfn array, and handle te framebuffer more cleanly.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[HVM] Save/restore: make sure all ioreqs are gone when a domain is saved
Tim Deegan [Thu, 8 Mar 2007 16:38:15 +0000 (16:38 +0000)]
[HVM] Save/restore: make sure all ioreqs are gone when a domain is saved
by pausing the domain and pulling them through.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agolinux: Remove an unused data structure from TPM frontend.
kfraser@localhost.localdomain [Thu, 8 Mar 2007 16:26:17 +0000 (16:26 +0000)]
linux: Remove an unused data structure from TPM frontend.
Some more code style changes.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years ago[XEN] Shadow: fix mark_dirty invocation to use gfn, not mfn
Tim Deegan [Thu, 8 Mar 2007 16:20:01 +0000 (16:20 +0000)]
[XEN] Shadow: fix mark_dirty invocation to use gfn, not mfn
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[XEN] Shadow: tidy up page_info before handing back to the allocator
Tim Deegan [Thu, 8 Mar 2007 16:18:50 +0000 (16:18 +0000)]
[XEN] Shadow: tidy up page_info before handing back to the allocator
which expects count_info fields to be zero.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[xen] Update the hvm rtc clock state if the domain's time offset is changed.
Christian Limpach [Thu, 8 Mar 2007 15:51:32 +0000 (15:51 +0000)]
[xen] Update the hvm rtc clock state if the domain's time offset is changed.
The settimeoffset domctl had no effect on hvm domains since the offset
was only read in rtc_init which is done when the domain is created.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[BUILDER]: Initialize code segment selectors in virtual IDT to 0.
Ian Campbell [Thu, 8 Mar 2007 15:35:28 +0000 (15:35 +0000)]
[BUILDER]: Initialize code segment selectors in virtual IDT to 0.
These should not be set until the guest kernel kernel configures an
entry point otherwise the null_trap_bounce() check gets confused.

This change was made to the old domain builder in 12455:3fa6635d04b9
but was lost in the transition to the new builder.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agoxen: Provide notification of console updates via VIRQ.
kfraser@localhost.localdomain [Thu, 8 Mar 2007 15:21:10 +0000 (15:21 +0000)]
xen: Provide notification of console updates via VIRQ.

The readconsolering capabilities provide the opportunity to
provide console output to other clients (remote systems,
logging systems, etc). This patchs adds the ability to generate
a notification of a change in the console buffer.

Signed-off-by: Ben Thomas <ben@virtualiron.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoxend: Platform feature 'multiprocessor suspend' is x86-only for now.
kfraser@localhost.localdomain [Thu, 8 Mar 2007 14:57:33 +0000 (14:57 +0000)]
xend: Platform feature 'multiprocessor suspend' is x86-only for now.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM] Save/restore: back-port IDE controller save routine from current qemu.
Tim Deegan [Thu, 8 Mar 2007 14:37:21 +0000 (14:37 +0000)]
[HVM] Save/restore: back-port IDE controller save routine from current qemu.
Also, send an interrupt and an error code to the guest on restore if we
dropped an active request when we saved.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoxen: Clean up heap allocator.
kfraser@localhost.localdomain [Thu, 8 Mar 2007 14:29:09 +0000 (14:29 +0000)]
xen: Clean up heap allocator.
Move some common free/alloc code into core heap-allocator
functions. Make it clear that alloc/free can only ever be done outside
hardirq context (previously it was unsafe: could deadlock on heap_lock).
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM] Add support for hardware-assisted paging
Tim Deegan [Thu, 8 Mar 2007 10:54:56 +0000 (10:54 +0000)]
[HVM] Add support for hardware-assisted paging
as the second implementation of the generic paging-assistance interface.

Signed-off-by: Wei Huang <wei.huang2@amd.com>
19 years agolinux: Restore time on APs if they are not hotplugged on save/restore.
kfraser@localhost.localdomain [Wed, 7 Mar 2007 16:21:21 +0000 (16:21 +0000)]
linux: Restore time on APs if they are not hotplugged on save/restore.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agonetback: Disable debug interrupt (accidentally left enabled in
kfraser@localhost.localdomain [Wed, 7 Mar 2007 16:16:09 +0000 (16:16 +0000)]
netback: Disable debug interrupt (accidentally left enabled in
previous checkin).
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux: Use fake carrier flag for netfront/netback rather than the real
kfraser@localhost.localdomain [Wed, 7 Mar 2007 16:00:47 +0000 (16:00 +0000)]
linux: Use fake carrier flag for netfront/netback rather than the real
netif_carrier_XXX() functions. This makes network bringup much faster.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM] Disallow soft resets in the BIOS.
Tim Deegan [Wed, 7 Mar 2007 13:07:12 +0000 (13:07 +0000)]
[HVM] Disallow soft resets in the BIOS.
They aren't safe if the guest has brought up PV device drivers.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoxen: Replace stupid page_alloc fix.
kfraser@localhost.localdomain [Wed, 7 Mar 2007 11:17:03 +0000 (11:17 +0000)]
xen: Replace stupid page_alloc fix.

I broke the 'correct' fix when I copied it out of an email. The
actual correct version, with an extra +1 in the for-loop header is
rather abusive of for loops, so I've changed it now to a do-while loop
and an extra comment so I don't screw up this backwards loop ever
again.

This version does actually boot. :-)

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agodump-core: always use elfclass64 format to support x86_32pae.
kfraser@localhost.localdomain [Wed, 7 Mar 2007 10:53:34 +0000 (10:53 +0000)]
dump-core: always use elfclass64 format to support x86_32pae.
Without this patch xen dump-core format can't handle over 4GB case.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years agotools: Clean up use of 'install' command.
kfraser@localhost.localdomain [Wed, 7 Mar 2007 10:49:20 +0000 (10:49 +0000)]
tools: Clean up use of 'install' command.

- convert raw "install" command to use $(INSTALL)
- convert some $(INSTALL) to $(INSTALL_DATA) as appropriate
- modify the specific $(INSTALL) definitions to use -p.

Original patch by Ben Thomas <ben@virtualiron.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoioemu: Remove use of 'echo -c' in script.
kfraser@localhost.localdomain [Wed, 7 Mar 2007 10:37:05 +0000 (10:37 +0000)]
ioemu: Remove use of 'echo -c' in script.

I've no idea what it does, and it doesn't appear to be valid on some
systems.  Use a more generic approach.

Signed-off-by: Ben Thomas <ben@virtualiron.com>
19 years agolinux: Don't use set_fixmap/clear_fixmap after boot-time. It's not
kfraser@localhost.localdomain [Wed, 7 Mar 2007 10:13:39 +0000 (10:13 +0000)]
linux: Don't use set_fixmap/clear_fixmap after boot-time. It's not
allowed and the functions are marked __init on x86/64.
Use HYPERVISOR_update_va_mapping() directly instead.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoA correct fix for page_alloc crash when Xen heap empty.
kfraser@localhost.localdomain [Wed, 7 Mar 2007 09:43:36 +0000 (09:43 +0000)]
A correct fix for page_alloc crash when Xen heap empty.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoioemu: Close file descriptors when forking processes.
kfraser@localhost.localdomain [Tue, 6 Mar 2007 16:51:42 +0000 (16:51 +0000)]
ioemu: Close file descriptors when forking processes.
Just leave stdin/stdout/stderr (and possibly tap fd) open.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
19 years agoMake Python tools (i.e., xend and pygrub) conditionally compiled.
kfraser@localhost.localdomain [Tue, 6 Mar 2007 16:46:20 +0000 (16:46 +0000)]
Make Python tools (i.e., xend and pygrub) conditionally compiled.

Config option is PYTHON_TOOLS, default is 'y'.

Signed-off-by: Ben Thomas <ben@virtualiron.com>
19 years ago[XEN] Shadow: ignore shadow operations on dying domains
Tim Deegan [Tue, 6 Mar 2007 15:02:20 +0000 (15:02 +0000)]
[XEN] Shadow: ignore shadow operations on dying domains
so that they don't get confused by the way that shadow_teardown()
leaves some of the mode bits set after releasing the shadow resources.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agolinux x86/64: No need to pre-allocate all fixmap pagetables:
kfraser@localhost.localdomain [Tue, 6 Mar 2007 13:41:05 +0000 (13:41 +0000)]
linux x86/64: No need to pre-allocate all fixmap pagetables:
just those for bt_ioremap().
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoxend: more flexibility in gathering data from /proc/cpuinfo
kfraser@localhost.localdomain [Tue, 6 Mar 2007 11:53:37 +0000 (11:53 +0000)]
xend: more flexibility in gathering data from /proc/cpuinfo

Add ia64 mapping for cpuinfo data and make the case where #vcpu !=
#pcpu more flexible (don't rely on cpu0 existing).

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
19 years ago[SVM] Clear VMCB's EFER.LME when guest disables paging
Travis Betak [Mon, 5 Mar 2007 22:22:21 +0000 (16:22 -0600)]
[SVM] Clear VMCB's EFER.LME when guest disables paging

Since the guest's CR0.PG is always set (in shadow paging), EFER.LME must
be cleared along with EFER.LMA when the guest is disabling paging.

Signed-off-by: Travis Betak <travis.betak@amd.com>
19 years ago[SVM] Use svm_long_mode_enabled() when checking if guest is in long mode
Travis Betak [Mon, 5 Mar 2007 22:21:50 +0000 (16:21 -0600)]
[SVM] Use svm_long_mode_enabled() when checking if guest is in long mode

This patch fixes the inconsistent method of checking if the guest is in
long mode (EFER.LMA == 1).

Signed-off-by: Travis Betak <travis.betak@amd.com>
19 years ago[SVM] Cleanup guest writes to EFER
Travis Betak [Mon, 5 Mar 2007 22:21:11 +0000 (16:21 -0600)]
[SVM] Cleanup guest writes to EFER

19 years ago[SVM] Return the shadow EFER value on guest EFER reads.
Travis Betak [Mon, 5 Mar 2007 22:18:10 +0000 (16:18 -0600)]
[SVM] Return the shadow EFER value on guest EFER reads.

Return the shadow of the guest's EFER instead of the VMCB.  This helps
with things such as the unlikely event the guest wants to check EFER.LME
immediately after setting it (The VMCB's EFER.LME remains clear until
the guest enables paging).

Signed-off-by: Travis Betak <travis.betak@amd.com>
19 years ago[SVM] Remove SVM cpu_state and add EFER shadow to svm structure.
Travis Betak [Mon, 5 Mar 2007 22:17:25 +0000 (16:17 -0600)]
[SVM] Remove SVM cpu_state and add EFER shadow to svm structure.

The SVM cpu state was being used inconsistently and, besides, it makes
more sense to instead rely on the guest's shadow registers to determine
the current guest state.

Signed-off-by: Travis Betak <travis.betak@amd.com>
19 years ago[tools] Import ptsname from its new location (after cset 14259:7f0d8e3c538e).
Christian Limpach [Mon, 5 Mar 2007 22:42:13 +0000 (22:42 +0000)]
[tools] Import ptsname from its new location (after cset 14259:7f0d8e3c538e).

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[tools] Use auxbin.py to determine libpath at build time.
Christian Limpach [Mon, 5 Mar 2007 19:22:21 +0000 (19:22 +0000)]
[tools] Use auxbin.py to determine libpath at build time.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years agoInstall pygrub according to auxbin rules.
kfraser@localhost.localdomain [Mon, 5 Mar 2007 19:01:19 +0000 (19:01 +0000)]
Install pygrub according to auxbin rules.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoMove ptsname module under tools/python.
kfraser@localhost.localdomain [Mon, 5 Mar 2007 18:54:26 +0000 (18:54 +0000)]
Move ptsname module under tools/python.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux x86/64: Clean up mm initialisation a little.
kfraser@localhost.localdomain [Mon, 5 Mar 2007 18:10:41 +0000 (18:10 +0000)]
linux x86/64: Clean up mm initialisation a little.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[tools] Use auxbin.py to determine libpath at build time.
Christian Limpach [Mon, 5 Mar 2007 16:43:12 +0000 (16:43 +0000)]
[tools] Use auxbin.py to determine libpath at build time.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years agolinux: no pc speaker device in domUs
kfraser@localhost.localdomain [Mon, 5 Mar 2007 15:53:18 +0000 (15:53 +0000)]
linux: no pc speaker device in domUs
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agolinux: scan DMI early
kfraser@localhost.localdomain [Mon, 5 Mar 2007 15:46:33 +0000 (15:46 +0000)]
linux: scan DMI early

While shuffling quite a few things around, this gets us closer to
native, which clearly had a reason to do the DMI scan early.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agolinux/x86-64 2.6.18: reserve bootmem differently
kfraser@localhost.localdomain [Mon, 5 Mar 2007 15:08:17 +0000 (15:08 +0000)]
linux/x86-64 2.6.18: reserve bootmem differently

Do init memory reservation in a single step rather then piece-wise.
This is not really addressing a problem, but simplifies things a
little.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agolinux/x86-64 2.6.18: do away with pud_offset_k()
kfraser@localhost.localdomain [Mon, 5 Mar 2007 15:06:13 +0000 (15:06 +0000)]
linux/x86-64 2.6.18: do away with pud_offset_k()
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agolinux/x86_64 2.6.18: remove orig_ist
kfraser@localhost.localdomain [Mon, 5 Mar 2007 15:04:28 +0000 (15:04 +0000)]
linux/x86_64 2.6.18: remove orig_ist

orig_ist is bound to presence of a TSS, hence is meaningless on Xen
kernels.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoFix crash in heap allocator when Xen 'zone' is empty.
kfraser@localhost.localdomain [Mon, 5 Mar 2007 14:39:03 +0000 (14:39 +0000)]
Fix crash in heap allocator when Xen 'zone' is empty.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux: Prefer testing io_bitmap_ptr to the TIF_IO_BITMAP.
kfraser@localhost.localdomain [Mon, 5 Mar 2007 14:20:26 +0000 (14:20 +0000)]
linux: Prefer testing io_bitmap_ptr to the TIF_IO_BITMAP.
Former is safer (in case TIF_IO_BITMAP is out-of-sync with actual
existence of an I/O bitmap for this process) and more readable, and
probably results in faster code too.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux: Remove unnecessary locking from pcifront free_root_bus_devs().
kfraser@localhost.localdomain [Mon, 5 Mar 2007 14:09:19 +0000 (14:09 +0000)]
linux: Remove unnecessary locking from pcifront free_root_bus_devs().
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LINUX] CONFIG_X86_TSC is defined upstream in arch/i386/Kconfig.cpu so use that
Ian Campbell [Mon, 5 Mar 2007 14:04:45 +0000 (14:04 +0000)]
[LINUX] CONFIG_X86_TSC is defined upstream in arch/i386/Kconfig.cpu so use that
instead of duplicating it in arch/i386/Kconfig.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agolinux 2.6.18: constify instances of 'struct file_operations'
kfraser@localhost.localdomain [Mon, 5 Mar 2007 14:00:05 +0000 (14:00 +0000)]
linux 2.6.18: constify instances of 'struct file_operations'
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agolinux 2.6.18: miscellaneous
kfraser@localhost.localdomain [Mon, 5 Mar 2007 13:57:11 +0000 (13:57 +0000)]
linux 2.6.18: miscellaneous

Various minor changes not fitting elsewhere and not warranting
separate patches.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agolinux 2.6.18: assembly annotations
kfraser@localhost.localdomain [Mon, 5 Mar 2007 13:49:11 +0000 (13:49 +0000)]
linux 2.6.18: assembly annotations

This adds (or moves to the proper place) annotations paralleling those
added in native code in 2.6.18. To make this look less ugly, it
required moving around a few things.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agolinux 2.6.18: eliminate Xen special: x8664_ksyms.c
kfraser@localhost.localdomain [Mon, 5 Mar 2007 13:33:42 +0000 (13:33 +0000)]
linux 2.6.18: eliminate Xen special: x8664_ksyms.c

The differences of arch/x86_64/kernel/x8664_ksyms-xen.c over its
native original are benign - the Xen special can therefore be
removed.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agolinux 2.6.18: eliminate Xen special: alternative.c
kfraser@localhost.localdomain [Mon, 5 Mar 2007 13:32:50 +0000 (13:32 +0000)]
linux 2.6.18: eliminate Xen special: alternative.c

The sole (x86-64 specific) difference of
arch/i386/kernel/alternative-xen.c
over its native original can be eliminated by slightly adjusting
x86-64's make_readonly(), and the Xen special can then be removed.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agolinux 2.6.18: eliminate Xen special: intel_cacheinfo.c
kfraser@localhost.localdomain [Mon, 5 Mar 2007 13:30:52 +0000 (13:30 +0000)]
linux 2.6.18: eliminate Xen special: intel_cacheinfo.c

arch/i386/kernel/cpu/intel_cacheinfo-xen.c is identical to
arch/i386/kernel/cpu/intel_cacheinfo.c, hence the Xen special can be
removed.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agolinux/x86-64: allow kernel init memory to be freed.
kfraser@localhost.localdomain [Mon, 5 Mar 2007 13:27:51 +0000 (13:27 +0000)]
linux/x86-64: allow kernel init memory to be freed.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoVM.actions_after_[shutdown|reboot|suspend|crash] were not set properly
kfraser@localhost.localdomain [Mon, 5 Mar 2007 13:18:28 +0000 (13:18 +0000)]
VM.actions_after_[shutdown|reboot|suspend|crash] were not set properly
in VM record returned via Xen API.
This patch fixes typos in key name for these fields.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
19 years ago[XEN] Shadow: fix predicate for when to use up-pointers
Tim Deegan [Mon, 5 Mar 2007 11:54:55 +0000 (11:54 +0000)]
[XEN] Shadow: fix predicate for when to use up-pointers
which was broken by the introduction of "pinnable" types
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoxen: Remove bogus file.
kfraser@localhost.localdomain [Mon, 5 Mar 2007 11:23:34 +0000 (11:23 +0000)]
xen: Remove bogus file.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoMerge with xenppc-unstable.hg
kfraser@localhost.localdomain [Mon, 5 Mar 2007 11:18:55 +0000 (11:18 +0000)]
Merge with xenppc-unstable.hg

19 years ago[xen] Fix deferred mmu op logic on invalidate shadow ldt.
Christian Limpach [Mon, 5 Mar 2007 11:17:52 +0000 (11:17 +0000)]
[xen] Fix deferred mmu op logic on invalidate shadow ldt.
On domain destroy, put_page_from_l1e is called on a domain
which is not current.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years agoMerge with xenppc-unstable.hg
kfraser@localhost.localdomain [Mon, 5 Mar 2007 11:14:15 +0000 (11:14 +0000)]
Merge with xenppc-unstable.hg

19 years agoxen: Make dom0 domain builder behaviour match that of domU.
kfraser@localhost.localdomain [Mon, 5 Mar 2007 10:52:54 +0000 (10:52 +0000)]
xen: Make dom0 domain builder behaviour match that of domU.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoxen: Fix ACPI SLIT/SRAT parsing to correctly map highmem.
kfraser@localhost.localdomain [Mon, 5 Mar 2007 10:37:01 +0000 (10:37 +0000)]
xen: Fix ACPI SLIT/SRAT parsing to correctly map highmem.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux: Clean up mm_pin/unpin.
kfraser@localhost.localdomain [Mon, 5 Mar 2007 10:26:45 +0000 (10:26 +0000)]
linux: Clean up mm_pin/unpin.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[domain builder] Remove unnecessary alignment of virtual address base.
Christian Limpach [Sat, 3 Mar 2007 20:42:38 +0000 (20:42 +0000)]
[domain builder] Remove unnecessary alignment of virtual address base.
Unbreaks loading NetBSD kernels with the new ^^ domain builder.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years agolinux: Some save/restore simplifications and cleanups.
Keir Fraser [Fri, 2 Mar 2007 23:01:36 +0000 (23:01 +0000)]
linux: Some save/restore simplifications and cleanups.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agox86/64: Save/restore user pagetable pointer for x86/64 PV guests.
Keir Fraser [Fri, 2 Mar 2007 22:57:27 +0000 (22:57 +0000)]
x86/64: Save/restore user pagetable pointer for x86/64 PV guests.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix -xen build.
kfraser@localhost.localdomain [Fri, 2 Mar 2007 16:57:24 +0000 (16:57 +0000)]
Fix -xen build.
Signed-off-by: Keir Fraser <keir@xensource.com>